package com.bll.imple.talentsAction;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.TalentsBean;
import com.bll.Action;
import com.dao.TalentsDao;

public class ShowTalentsAction implements Action{

	
	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		int userId=Integer.parseInt(request.getParameter("userId"));
		  TalentsDao dao=new TalentsDao();
		  List<TalentsBean> talentsBeans=dao.SelectAll(userId);
		  request.setAttribute("talentsBeans", talentsBeans);
		return "Chengpinyingcai.jsp";
	}

}
